home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / E-P-O.ZIP / P4DEF_02.INC < prev    next >
Encoding:
Text File  |  1996-10-31  |  5.0 KB  |  149 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //
  4. // p4def_02.inc
  5. //
  6. // "Easy POV Oven"
  7. //
  8. // Written By: Paul T. Dawson
  9. //             ptdawson@voicenet.com
  10. //             http://www.voicenet.com/~ptdawson
  11. //
  12. // All code and techniques are PUBLIC DOMAIN - have fun with it!
  13. //
  14. //------------------------------------------------------------------->
  15. //
  16. // This file builds the guy (Tony) watching the "Easy POV Oven".
  17. //
  18. //------------------------------------------------------------------->
  19. //
  20. // Declare the *textures* for everything.
  21.  
  22.         #declare P4_Eye_Texture = texture { pigment { Sapphire_Agate } }
  23.         #declare P4_Glasses_Texture = texture { pigment{White} }
  24.  
  25.         #declare P4_Hair_Texture = texture {
  26.                 pigment { Brown_Agate } }
  27.  
  28.         #declare P4_Hat_Texture = texture {
  29.                 pigment { MandarinOrange }
  30.                 finish { F_MetalA }
  31.                 normal { bumps 0.3 scale 2 } }
  32.  
  33.         #declare P4_Shirt_Texture = texture {
  34.                 pigment {
  35.                         image_map { gif "shirt-1.gif" interpolate 2 once }
  36.                         translate < -0.5, 0, 0 >
  37.                         scale < 26, 24, 24 >
  38.                         } // End of pigment.
  39.                 normal { bumps 0.5 scale 2 }
  40.                 } // End of texture.
  41.  
  42.         #declare P4_Shoe_Texture = texture { pigment{Gray20} }
  43.  
  44.         #declare P4_Shorts_Texture = texture { T_Stone21 scale 3
  45.                 normal { bumps 0.2 scale 2 } }
  46.  
  47.         #declare P4_Skin_Texture = texture {
  48.                 pigment { Tan }
  49.                 normal { crackle 0.02 scale 0.5 } }
  50.  
  51. //------------------------------------------------------------------->
  52. //
  53. // Now choose *types* of things. You will have to read the directions
  54. // to see what numbers are legal here!
  55.  
  56.         #declare P4_Eye_Type = 1
  57.         #declare P4_Glasses_Type = 0
  58.         #declare P4_Hair_Type = 1
  59.         #declare P4_Hand_Type = 2
  60.         #declare P4_Hat_Type = 1
  61.         #declare P4_Mouth_Type = 2
  62.         #declare P4_Nose_Type = 2
  63.         #declare P4_Shirt_Type = 2
  64.         #declare P4_Shoe_Type = 1
  65.         #declare P4_Shorts_Type = 3
  66.  
  67. //------------------------------------------------------------------->
  68. //
  69. // Set the sizes of various things.
  70.  
  71.         #declare P4_Leg_Length = 34
  72.         #declare P4_Neck_Height = 3
  73.         #declare P4_Shirt_Height = 24
  74.         #declare P4_Shorts_Height = 14
  75.  
  76. //------------------------------------------------------------------->
  77. //
  78. // Choose the rotation values. Please read the directions!
  79.  
  80.         #declare P4_Hat_Rotate = < -10, 120-30, 0 >
  81.         #declare P4_Neck_Rotate = < -10, -10, 0 >
  82.         #declare P4_Waist_Rotate = < -10, 0, 0 >
  83.  
  84.         #declare P4_Left_Hand_Rotate = < 30, 0, 0 >
  85.         #declare P4_Right_Hand_Rotate = < 80, 0, 0 >
  86.  
  87.         #declare P4_Left_Elbow_Rotate = < 0, -40, 0 >
  88.         #declare P4_Right_Elbow_Rotate = < 0, 40, 0 >
  89.  
  90.         #declare P4_Left_Eyelid_Rotate = -20
  91.         #declare P4_Right_Eyelid_Rotate = -20
  92.  
  93.         #declare P4_Left_Knee_Rotate = < -10, 0, 0 >
  94.         #declare P4_Right_Knee_Rotate = < -10, 0, 0 >
  95.  
  96.         #declare P4_Left_Leg_Rotate = < 10, 0, -10 >
  97.         #declare P4_Right_Leg_Rotate = < 10, 0, 10 >
  98.  
  99.         #declare P4_Left_Shoulder_Rotate = < -30, -30,  40 >
  100.         #declare P4_Right_Shoulder_Rotate = < 0, 50, -60 >
  101.  
  102. //------------------------------------------------------------------->
  103. //
  104. // Create the optional "holding" object. This will go into the left
  105. // hand, and move with the hand. This is optional - just comment it
  106. // out if not needed, and set the flag to "false".
  107. //
  108. // The flag is necessary to prevent person #2 from carrying the object
  109. // that you gave to person #1. Set it to true or false.
  110.  
  111.         #declare P4_Holding_Flag = false
  112.  
  113. //------------------------------------------------------------------->
  114. //
  115. // Make another optional object - a "bracelet". This also has a flag
  116. // to set on/off. This prevents duplicate bracelets! The bracelet
  117. // should be at <0,0,0>, just like a standard torus.
  118.  
  119.         #declare P4_Bracelet_Flag = false
  120.  
  121. //------------------------------------------------------------------->
  122. //
  123. // Despite my attempts at using "realistic inches" as units, the
  124. // people always seem to end up 8 or 9 feet tall. This variable lets
  125. // you scale the person down to a normal size. Use the P4_TEST.POV
  126. // scene to see how tall your person actually is!
  127.  
  128.         #declare P4_Total_Scale = 80/100
  129.  
  130. //------------------------------------------------------------------->
  131. //
  132. // This is the height to move the person up, so his/her feet are on
  133. // the floor. Sorry, but because of bendable legs, this has to be
  134. // adjusted manually (by YOU). 8-)
  135.  
  136.         #declare P4_Y_Adjust = 33
  137.  
  138. //------------------------------------------------------------------->
  139. //
  140. // Now call "p4_main.inc" to create the object.
  141.  
  142.         #include "p4_main.inc"
  143.  
  144. //------------------------------------------------------------------->
  145. //
  146. // End of this file.
  147.  
  148.  
  149.